/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

import Model.seguimiento;
import java.awt.Stroke;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import DAO.SeguimientoDAO;
import java.util.ArrayList;
import org.apache.jasper.tagplugins.jstl.core.ForEach;

/**
 *
 * @author Admin
 */
@ManagedBean(name = "segi")
@SessionScoped
public class SeguimientoBean {

    private seguimiento segi;
    private SeguimientoDAO SegiDAO;
    public String assignado;
    public Map<String, Object> personal;

    public SeguimientoBean() {
        assignado = "";
        SegiDAO = new SeguimientoDAO();
        segi = new seguimiento();

        ArrayList<String> x = new ArrayList<String>();
        personal = new LinkedHashMap<String, Object>(); //aqui tengo que llamae a la base y devolver una lista

        x = SegiDAO.getPersonal();
 personal.put("","");
        for (String name : x) {
            personal.put(name, name);
        }

    }

    /* 
     public String favCoffee2;
     public void setFavCoffee2(String favCoffee2) {
     this.favCoffee2 = favCoffee2;
     }

     public String getFavCoffee2() {
     return favCoffee2;
     }
       
     //Generated by Map
    
     private static Map<String,Object> coffee2Value;
     static{
     coffee2Value = new LinkedHashMap<String,Object>();
     coffee2Value.put("Coffee2 - Cream Latte", "Cream Latte"); //label, value
     coffee2Value.put("Coffee2 - Extreme Mocha", "Extreme Mocha");
     coffee2Value.put("Coffee2 - Buena Vista", "Buena Vista");
     }
 
     public Map<String,Object> getFavCoffee2Value() {
     return coffee2Value;
     }


        
        
        
     */
    public seguimiento getSegi() {
        return segi;
    }

    public void setSegi(seguimiento segi) {
        this.segi = segi;
    }

    public void setAssignado(String assignado) {
        this.assignado = assignado;
    }

    public String getAssignado() {
        return assignado;
    }

    public Map<String, Object> getPersonal() {
        return personal;
    }

    public void setPersonal(Map<String, Object> personal) {
        this.personal = personal;
    }
}
